<?php
namespace Seller\Model;
use Think\Model\RelationModel;
class OrderThroughModel extends RelationModel
{
    protected $_link = array(

        //代理表
        'agent'=>array(
            'mapping_type' => self::BELONGS_TO,
            'class_name' => 'Agent',
            'foreign_key'   => 'uid',
            'mapping_fields' => 'agent_name',
            'as_fields' => 'agent_name',
        )

    );
}

